package com.questionnaire.service;

import com.questionnaire.dao.AnswersMapper;
import com.questionnaire.entity.Answers;
import com.questionnaire.entity.AnswersExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnswerService {
    @Autowired
    private AnswersMapper mapper;

    public int deleteByPrimaryKey(Integer id){
        return   mapper.deleteByPrimaryKey(id);
    }

    public int insert(Answers record){
        return mapper.insert(record);
    }

    public int insertSelective(Answers record){
        return mapper.insertSelective(record);
    }

    public List<Answers> selectByExample(AnswersExample example){
        return mapper.selectByExample(example);
    }

    public Answers selectByPrimaryKey(Integer id){
        return mapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Answers record){
        return mapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Answers record){
        return mapper.updateByPrimaryKey(record);
    }
}
